package fr.efrei.musicpliz.entity;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Transient;

@Entity
@DiscriminatorValue(value = "professionnel")
@SuppressWarnings("serial")
public class ClientProfessionnel extends Compte {
	
	private String typeResto;
	
	private String description;
	
	public ClientProfessionnel()  {
		// empty constructor (for example for generic search)
	}

	public ClientProfessionnel(String nom, String typeResto, String adresse,
			int codePostal, String ville, String numero, String description,
			String mail, String password, Date naissance) {
		super(nom, adresse, codePostal, ville, numero, mail, password,
				naissance);
		this.typeResto = typeResto;
		this.description = description;
	}

	public String getTypeResto() {
		return typeResto;
	}

	public void setTypeResto(String typeResto) {
		this.typeResto = typeResto;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Transient
	@Override
	public String getCompteString() {
		return "Client Particulier";
	}
}
